import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

const path = require('path');
// https://vitejs.dev/config/
export default defineConfig({
  base:"/",
  resolve:{
    alias :{
      "@" : path.resolve(__dirname, "./src"),
    }
  },
  plugins: [vue()],
  server:{
    proxy:{
      '/api':{
        // target:"http://192.168.2.10:8360",
        // target:"http://127.0.0.1:8360",
        target:"http://1.15.99.13:8360",
        changeOrigin:true,
        rewrite: (path) => path.replace(/^\/api/, '')
      }
    }
  }
})
